<pre class="code">
<span class="srcline"><span class="lineno"><a href="1,67" id="srcline67">67</a></span><span class="line"></span></span>
<span class="srcline"><span class="lineno"><a href="1,68" id="srcline68">68</a></span><span class="line"><span class="comment">% Sigmoid Symmetric Transfer Function</span></span></span>
<span class="srcline"><span class="lineno"><a href="1,69" id="srcline69">69</a></span><span class="line"><span class="keyword">function</span> <span class="var type1" id="S37T23U677">a</span> = tansig_apply(<span class="var type1" id="S38T23U680">n</span>)</span></span>
<span class="srcline"><span class="lineno"><a href="1,70" id="srcline70">70</a></span><span class="line">  <span class="mxinfo" id="T23:U3"><span class="var type1" id="S37T23U683">a</span> = <span class="mxinfo" id="T23:U5"><span class="mxinfo" id="T23:U6"><span class="mxinfo" id="T2:U7">2</span> ./ (<span class="mxinfo" id="T23:U8"><span class="mxinfo" id="T2:U9">1</span> + <span class="mxinfo" id="T23:U10">exp(<span class="mxinfo" id="T23:U11"><span class="mxinfo" id="T2:U12">-2</span>*<span class="var type1" id="S38T23U695">n</span></span>)</span></span>)</span> - <span class="mxinfo" id="T2:U14">1</span></span></span>;</span></span>
<span class="srcline"><span class="lineno"><a href="1,71" id="srcline71">71</a></span><span class="line"><span class="keyword">end</span></span></span>
<span class="srcline"><span class="lineno"><a href="1,72" id="srcline72">72</a></span><span class="line"></span></span>
<span class="srcline"><span class="lineno"><a href="1,73" id="srcline73">73</a></span><span class="line"><span class="comment">% Map Minimum and Maximum Output Reverse-Processing Function</span></span></span>
</pre>
